//用来放置项目的配置信息
const BASE_URL = import.meta.env.VITE_BASE_URL;
export const API_CONFIG ={
    //login/logout接口定义
    loginApi: `${BASE_URL}/api/auth/login`,
    logoutApi: "",
    podApi: `${BASE_URL}/api/pod/list`,


    //Cluster接口定义
    clusterGetApi: `${BASE_URL}/api/cluster/get`,
    clusterListApi: `${BASE_URL}/api/cluster/list`,
    clusterAddApi: `${BASE_URL}/api/cluster/add`,
    clusterUpdateApi: `${BASE_URL}/api/cluster/update`,
    clusterDeleteApi: `${BASE_URL}/api/cluster/delete`,
    
    //Node接口定义
    nodeGetApi: `${BASE_URL}/api/node/list`,
    nodeListApi: `${BASE_URL}/api/node/get`,


    //namespace接口定义
    namespaceGetApi: `${BASE_URL}/api/namespace/list`,
    namespaceAddApi: `${BASE_URL}/api/namespace/add`,
    namespaceUpdateApi: `${BASE_URL}/api/namespace/update`,
    namespaceDeleteApi: `${BASE_URL}/api/namespace/delete`,
    namespaceListApi: `${BASE_URL}/api/namespace/list`
}

export const CONFIG = {
    TOKEN_NAME: "Authorization"
}
